package cn.lixin.hrm.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "oauth.client")
@Data
public class AuthProperties {
    private   ClientProperties system;
    private   ClientProperties website;
    public  ClientProperties getClient(Integer type){
        System.out.println(type);
       if(type.intValue() == 0){
           System.out.println(system);
           return system;}
       else if(type.intValue() == 1){
           return website;}
       else{
           return  null;}
    }
}
